/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package module4.exercise2.banking;

/**
 *
 * @author trang
 */
public class TestBanking {
    public static void main(String[] args) {

        Customer cus= new Customer("Jane","Smith");
        Account curr_balance =new Account(500.00);

        System.out.println ("Creating the customer " + cus.getFirstName() + " " + cus.getLastName());
        
        System.out.println ("Creating her account with a " + curr_balance.getBalance() + " balance");
        System.out.println("Withdraw 150.00 :" + curr_balance.withdraw(150.00));
        System.out.println("Deposit 22.50 :" + curr_balance.deposit(22.50));
        System.out.println("Withdraw 47.62 :" + curr_balance.withdraw(47.62));
        System.out.println("Withdraw 400.00 :" + curr_balance.withdraw(400.00));
        
        System.out.println("Customer" + "[" + cus.getFirstName()+ "," + cus.getLastName()+ "]" + " has a balance of " + curr_balance.getBalance());
      }
}

